package me.desingpatterns.behavioral.command.ui;

import me.desingpatterns.behavioral.command.model.Command;

/**
 * 
 * @author guanpanpan
 *
 */
public class MenuItem {
	private Command command;

	public void setCommand(Command command) {
		this.command = command;
	}

	public void clicked() {
		this.command.execute();
	}
}
